package com.study.service;


import com.study.bean.Blog;
import com.study.bean.BlogQuery;
import com.study.util.PageInfo;

import java.sql.SQLException;
import java.util.List;

public interface IBlogService {
    List<Blog> selectAll() throws SQLException;

    void deleteById(int id) throws SQLException;

    void deleteAll(String[] ids) throws SQLException;

    void add(Blog blog) throws SQLException;

    Blog selectById(int id) throws SQLException;

    void update(Blog blog) throws SQLException;

    PageInfo selectByPage(BlogQuery blogQuery) throws SQLException;
}
